/**
 * jims
 */
package com.jims.master.modules.blood.entity;

import org.hibernate.validator.constraints.Length;

import com.jims.master.common.persistence.DataEntity;

/**
 * 血液入库主记录Entity
 *
 * @author fengyg
 * @version 2017-04-07
 */
public class BloodInpMaster extends DataEntity<BloodInpMaster> {

    private static final long serialVersionUID = 1L;
    private String inpNo;        // 入库单号
    private String bloodSource;        // 血液来源

    public BloodInpMaster() {
        super();
    }

    public BloodInpMaster(String id) {
        super(id);
    }

    @Length(min = 1, max = 10, message = "入库单号长度必须介于 1 和 10 之间")
    public String getInpNo() {
        return inpNo;
    }

    public void setInpNo(String inpNo) {
        this.inpNo = inpNo;
    }

    @Length(min = 1, max = 1, message = "血液来源长度必须介于 1 和 1 之间")
    public String getBloodSource() {
        return bloodSource;
    }

    public void setBloodSource(String bloodSource) {
        this.bloodSource = bloodSource;
    }
}